package com.duobaoyu.dby.supply.db.mapper.refund;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.duobaoyu.dby.common.mybatis.base.DbyBaseMapper;
import com.duobaoyu.dby.supply.common.biz.dto.refund.AfterSaleApplyQueryDTO;
import com.duobaoyu.dby.supply.common.biz.vo.refund.AfterSaleExportVO;
import com.duobaoyu.dby.supply.common.biz.vo.refund.AfterSaleListVO;
import com.duobaoyu.dby.supply.db.entity.refund.AfterSale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 售后单
 *
 * @author LY
 * @email 249007302@qq.com
 * @date 2023-09-26 10:42:54
 */
@Mapper
public interface AfterSaleMapper extends DbyBaseMapper<AfterSale> {

	Page<AfterSaleListVO> queryPage(@Param("page") IPage<AfterSaleListVO> page, @Param("afterSale") AfterSaleApplyQueryDTO afterSaleApplyQuery);

    Page<AfterSaleExportVO> queryExportPage(@Param("page") Page<Object> page, @Param("afterSale") AfterSaleApplyQueryDTO afterSaleApplyQuery);

	/**
	 * 售后订单导出总数
	 * @param afterSaleApplyQuery
	 * @return
	 */
	long afterSaleExportCount(@Param("afterSale") AfterSaleApplyQueryDTO afterSaleApplyQuery);
}
